﻿//
// $HeadURL: http://codeka-memcache.googlecode.com/svn/trunk/Benchmark/EnyimWrapper.cs $
// $Revision: 12 $
// $Author: dean.codeka $     $Date: 2010-02-22 10:54:11 +0000 (Mon, 22 Feb 2010) $
//
// Copyright © 2009-2010 Dean Harding, all rights reserved.
//

using Enyim.Caching;
using Enyim.Caching.Memcached;

namespace Benchmark
{
    /// <summary>
    /// This is an <see cref="IWrapper"/> around the Enyim client.
    /// </summary>
    class EnyimWrapper : IClientWrapper
    {
        MemcachedClient mcc = new MemcachedClient();

        public void Add(string key, object value)
        {
            mcc.Store(StoreMode.Add, key, value);
        }

        public void Set(string key, object value)
        {
            mcc.Store(StoreMode.Set, key, value);
        }
    }
}
